package com.wx.mall.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wx.mall.order.entity.OrderLog;
import com.wx.mall.order.mapper.OrderLogMapper;
import com.wx.mall.order.service.IOrderLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单日志 服务实现类
 * </p>
 *
 * @author j
 * @since 2020-04-25
 */
@Service
public class OrderLogServiceImpl extends ServiceImpl<OrderLogMapper, OrderLog> implements IOrderLogService {

    @Override
    public List<OrderLog> getById(Long orderId) {

        QueryWrapper<OrderLog> wrapper=new QueryWrapper<>();
        wrapper.eq("order_id",orderId);
        List<OrderLog> list=this.list(wrapper);
        return list;
    }
}
